
<ion-view class="sjudge-detail-view" view-title="缺陷详情">
    <ion-header-bar  class="bar-subheader">
        <im-card-header card-title="单品信息"></im-card-header>
        <div class="im-flow-container">
            <im-master-item class="im-flow-item" master-name="单号" 
                master-value="{{data.badDetail.MOCode}}">
            </im-master-item>
            <im-master-item class="im-flow-item" master-name="料号" 
                master-value="{{data.badDetail.ItemMasterCode}}">
            </im-master-item>
            <im-master-item class="im-flow-item" master-name="名称" 
                master-value="{{data.badDetail.ItemMasterName}}">
            </im-master-item>
            <im-master-item class="im-flow-item" master-name="批次" 
                master-value="{{data.badDetail.MOLotNumber}}">
            </im-master-item>
            <im-master-item class="im-flow-item" master-name="检验人" 
                master-value="{{data.badDetail.Users[0].Name}}">
            </im-master-item>
            <im-master-item class="im-flow-item" master-name="作业" 
                master-value="{{data.badDetail.WorkName}}">
            </im-master-item>
        </div>
        <im-card-header card-title="缺陷信息">
            <span class="sjudge-qc-status">不合格</span>
            <im-pull-right>
                <button class="button" ng-click="showRemark()">备注</button>
            </im-pull-right>
        </im-card-header>
    </ion-header-bar>
    <ion-content>
        <div class="im-flow-container">
            <im-defect-card class="im-flow-item" ng-repeat="item in data.badDetail.qcRecords" 
                defect="item" readonly="true">
            </im-defect-card>
        </div>
    </ion-content>
    <ion-footer-bar>
        <im-pull-right>
            <button class="button sjudge-button-scrap" ng-click="doJudge(5, '报废')">报废</button>
            <button class="button sjudge-button-rework" ng-click="doJudge(4, '返工')">返工</button>
            <button class="button sjudge-button-accept" ng-click="doJudge(2, '放行')">放行</button>
        </im-pull-right>
    </ion-footer-bar>
</ion-view>